FROM tomcat:8.5.42-jdk8-corretto
RUN set -eux; \
    rm -rf /usr/local/tomcat/webapps/*;
COPY tmp.war /usr/local/tomcat/webapps/ROOT/
RUN cd /usr/local/tomcat/webapps/ROOT/;jar -xvf tmp.war;rm -f tmp.war